<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>学生管理系统</title>
    <link rel="stylesheet" th:href="@{/libs/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/libs/layer/mobile/need/layer.css}">
    <script type="text/javascript" th:src="@{/libs/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/dateTime.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery-1.4.4.min.js}"></script>
    <script type="text/javascript">
        var pageUrl = "${pageContext.request.contextPath }";
        $(document).ready(function () {
            showDay();
            setInterval('showTime();', 1000);
        })
    </script>


    <style>
        .layui-table-view .layui-form-checkbox[lay-skin=primary] i {
            margin-top:8px;
        }
    </style>
</head>
<body>
<div>
    <input id="basePath" hidden value="${pageContext.request.contextPath}" />
</div>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">校园应用系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>


        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="javascript:void(0);">今天是<span id="day"></span>&nbsp;&nbsp;&nbsp;
                <span id="time"></span>
            </a></li>
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">个人资料</a></dd>
                    <dd><a href="">设置</a></dd>
                    <dd><a th:href="@{/removeUser}">退出系统</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">学生管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/student}" >学生基本信息管理</a></dd>
                        <dd><a href="javascript:;">学生详细信息管理</a></dd>
                        <dd><a href="javascript:;">举报管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">教室管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/class}">教室基本信息管理</a></dd>
                        <dd><a href="javascript:;">教室详细信息管理</a></dd>
                        <dd><a href="">等等</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">班级管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/grade}">班级基本信息管理</a></dd>
                        <dd><a href="javascript:;">班级详细信息管理</a></dd>
                        <dd><a href="">等等</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">宿舍管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/dormitory}">宿舍基本信息管理</a></dd>
                        <dd><a href="javascript:;">宿舍详细信息管理</a></dd>
                        <dd><a href="">等等</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">课程管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/curr}">课程基本信息管理</a></dd>
                        <dd><a href="javascript:;">课程详细信息管理</a></dd>
                        <dd><a href="">等等</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>



    <script type="text/javascript" th:src="@{/js/jquery-1.8.3.min.js}"></script>

    <script type="text/javascript" th:src="@{/libs/layer/layer.js}"></script>





    <div class="layui-body">
        <!-- 内容主体区域 -->
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>宿舍基本信息管理</legend>
        </fieldset>
        <div class="demoTable">

            <div class="layui-form-item">
                <label class="layui-form-label">宿舍名称:</label>
                <div class="layui-input-inline" style="width: 120px">
                    <input type="text" name="dormitoryName" id="ddormitoryNameI" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">管理员名字:</label>
                <div class="layui-input-inline " style="width: 120px">
                    <input type="text" name="dormSupervisor" id="dormSupervisorId" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">宿舍人数:</label>
                <div class="layui-input-inline " style="width: 120px">
                    <input type="text" name="bedNumber" id="bedNumberIdddd" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                </div>

                <button class="layui-btn" data-type="reload">查询</button>
            </div>



            <table class="layui-hide" id="demo" lay-filter="test"></table>


            <script type="text/html" id="barDemo">

                <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
                <a class="layui-btn layui-btn-xs" lay-event="more">更多<i class="layui-icon layui-icon-down"></i></a>
            </script>

        </div>
    </div>


</div>

<div id="updatePage" style="display: none">
    <div class="layui-form-item">
        <label class="layui-form-label">区域：</label>
        <div class="layui-input-block">
            <input type="text" name="area" id="areaId" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">楼号：</label>
        <div class="layui-input-block">
            <input type="text" name="buildingNo" id="buildingNoId" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">楼层：</label>
        <div class="layui-input-block">
            <input type="text" name="buildingFloor" id="buildingFloorId" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormitoryName" id="dormitoryNameId" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍人数：</label>
        <div class="layui-input-block">
            <input type="text" name="bedNumber" id="bedNumberId" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">管理员名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormSupervisor" id="dormSupervisorIdd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">使用状态：</label>
        <select name="useStatus" id="useStatusId" lay-verify="required" lay-search="" class="layui-select">
            <option value=''>请选择</option>
            <option value='0'>使用</option>
            <option value='1'>未使用</option>
            <option value='2'>停用</option>
            <option value='3'>保留</option>
        </select>
    </div>



    <button class="layui-btn" id="updatedormitory" style="margin-left: 110px;">确认修改</button>
</div>

<!--查看-->

<div id="viewdor" style="display: none">
    <div class="layui-form-item">
        <label class="layui-form-label">区域：</label>
        <div class="layui-input-block">
            <input type="text" name="area" id="areaIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">楼号：</label>
        <div class="layui-input-block">
            <input type="text" name="buildingNo" id="buildingNoIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">楼层：</label>
        <div class="layui-input-block">
            <input type="text" name="buildingFloor" id="buildingFloorIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormitoryName" id="dormitoryNameIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍人数：</label>
        <div class="layui-input-block">
            <input type="text" name="bedNumber" id="bedNumberIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px"disabled >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">管理员名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormSupervisor" id="dormSupervisorIddddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" disabled>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">使用状态：</label>
        <select name="useStatus" id="useStatusIddd" lay-verify="required" lay-search="" class="layui-select" disabled>
            <option value=''>请选择</option>
            <option value='0'>使用</option>
            <option value='1'>未使用</option>
            <option value='2'>停用</option>
            <option value='3'>保留</option>
        </select>
    </div>


    <button class="layui-btn" id="adddorr" style="margin-left: 110px;">添加</button>
    <button class="layui-btn" id="viewDorm" style="margin-left: 110px;">查看</button>
</div>

<!--添加-->
<div id="insertpage" style="display: none">
    <div class="layui-form-item">
        <label class="layui-form-label">区域：</label>
        <select name="area" id="areaIdd" lay-verify="required" lay-search="" class="layui-select">
            <option value="">请选择</option>
            <option>A区</option>
            <option>B区</option>
            <option>C区</option>
            <option>D区</option>
        </select>
<!--        <input list="iarea" id="iareax" class="layui-input">-->
<!--        <datalist id="iarea" >-->
<!--            <option value=''>请选择</option>-->
<!--        </datalist>-->
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">楼号：</label>
        <select name="buildingNo" id="buildingNoIdd" lay-verify="required" lay-search="" class="layui-select">
            <option value="">请选择</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
        </select>

    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">楼层：</label>
        <select name="buildingFloor" id="buildingFloorIdd" lay-verify="required" lay-search="" class="layui-select">
            <option value="">请选择</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
        </select>

    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍ID：</label>
        <div class="layui-input-block">
            <input type="text" name="dormitoryId" id="dormitoryIdd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormitoryName" id="dormitoryNameIdd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍人数：</label>
        <div class="layui-input-block">
            <input type="text" name="bedNumber" id="bedNumberIdd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">管理员ID：</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="dormSupervisorId" id="dormSupervisorIdddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >-->
<!--        </div>-->
<!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">管理员名字：</label>
        <div class="layui-input-block">
            <input type="text" name="dormSupervisor" id="dormSupervisorIddd" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">使用状态：</label>
        <select name="useStatus" id="useStatusIdd" lay-verify="required" lay-search="" class="layui-select">
            <option value=''>请选择</option>
            <option value='0'>使用</option>
            <option value='1'>未使用</option>
            <option value='2'>停用</option>
            <option value='3'>保留</option>
        </select>
    </div>

    <button class="layui-btn" id="adddor" style="margin-left: 110px;">添加</button>
</div>


<script type="text/javascript" th:src="@{/js/dormitory.js}"></script>



</body>
</html>